﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PMS.Models.Base
{
    ///<summary>
    ///用户与人员关系表的实体类
    ///</summary>
    [Serializable]
    [Table("User_Person")]
    public class User_Person
    {
        /// <summary>
        /// 用户主键
        /// </summary>
        [Key]
        [Column("UserId",Order = 1)]
        public int UserId { get; set; }
        /// <summary>
        /// 关联人员Id 
        /// </summary>
        [Key]
        [Column("PersonId",Order = 2)]
        public int PersonId { get; set; }
        /// <summary>
        /// 所关联的人员类型,应该是码表值
        /// </summary>
        [Column("PersonType")]
        public int PersonType { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Column("CreateBy")]
        public int CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateDate")]
        public System.DateTime CreateDate { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        [Column("ModifyBy")]
        public int ModifyBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [Column("ModifyDate")]
        public System.DateTime ModifyDate { get; set; }
    }
}